package cn.wolfcode.service;

import cn.wolfcode.domain.Role;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface IRoleService {

    int deleteByPrimaryKey(Long id);

    void insert(@Param("record") Role record, @Param("permissionIds") Long[] permissionIds);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    void updateByPrimaryKey(Role record, Long[] permissionIds);

    PageInfo<Role> query(QueryObject qo);

    List<Role> queryRoleLByEmployeeId(Long employeeId);
}
